﻿@model ADShop.Models.Member
@using ADShop.Repository

@{
    ViewBag.Title = "Edit";
}

<h2>Edit Member</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    @*<fieldset>
        <legend>Member</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDUser)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDUser)
            @Html.ValidationMessageFor(model => model.IDUser)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.UserEmail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserEmail)
            @Html.ValidationMessageFor(model => model.UserEmail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDPrivilege)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDPrivilege)

            @Html.ValidationMessageFor(model => model.IDPrivilege)
        </div>

        

        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Active)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Active)
            @Html.ValidationMessageFor(model => model.Active)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
        </fieldset>*@
   

    
        <div class="panel-body">
            <table class="table table-hover" id="sample-table-1">
                <thead>
                    <tr>
                        @*<th>@Html.DisplayNameFor(model => model.InfoMember.FirstName)</th>*@
                        <th>@Html.DisplayNameFor(model => model.IDUser)</th>
                        <th>@Html.DisplayNameFor(model => model.UserEmail)</th>
                        <th>@Html.DisplayNameFor(model => model.Password)</th>
                        <th>@Html.DisplayNameFor(model => model.IDPrivilege)</th>
                        <th>@Html.DisplayNameFor(model => model.Active)</th>

                    </tr>
                </thead>
                <tbody>
                    <tr>
                        @*<td>
                            <div class="editor-field">
                               @Model.InfoMember.FirstName)
                                @Html.ValidationMessageFor(model => model.InfoMember.FirstName)
                            </div>
                        </td>*@

                        <td>
                            <div class="editor-field">
                                @Html.EditorFor(modle => modle.IDUser)
                                @Html.ValidationMessageFor(model => model.IDUser)
                            </div>
                        </td>

                        <td>
                            <div class="editor-field">
                                @Html.EditorFor(model => model.UserEmail)
                                @Html.ValidationMessageFor(model => model.UserEmail)
                            </div>
                        </td>
                        <td>
                            <div class="editor-field">
                                @Html.PasswordFor(model => model.Password)
                                @Html.ValidationMessageFor(model => model.Password)
                            </div>
                        </td>
                        <td>
                            <div class="editor-field">
                                @Html.DropDownList("IDPrivilege", String.Empty)

                                @Html.ValidationMessageFor(model => model.IDPrivilege)
                            </div>
                        </td>
                        <td>
                            <div class="editor-field">
                                @Html.EditorFor(model => model.Active)
                                @Html.ValidationMessageFor(model => model.Active)
                            </div>
                        </td>

                    </tr>
                    



                </tbody>


            </table>

        </div>
        <p>
            <input type="submit" value="Save" class="btn btn-green" />
        </p>
    

}

<div>
    @Html.ActionLink("Bảng Danh Sách Khách Hàng", "Index",null, new { @class = "label label-default" })
</div>
